package com.hhh.springai_test.service;

import com.hhh.springai_test.model.dto.readingRoom.AddReadingRoomRequest;
import com.hhh.springai_test.model.dto.readingRoom.UpdateReadingRoomRequest;
import com.hhh.springai_test.model.po.ReadingRoom;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author 29915
* @description 针对表【reading_room(阅览室信息表)】的数据库操作Service
* @createDate 2025-02-04 11:06:13
*/
public interface ReadingRoomService extends IService<ReadingRoom> {
    /**
     * 创建阅览室
     * @param addReadingRoomRequest
     * @return
     */
    long addReadingRoom(AddReadingRoomRequest addReadingRoomRequest);

    /**
     * 更新阅览室
     * @param updateReadingRoomRequest
     * @return
     */
    boolean updateReadingRoom(UpdateReadingRoomRequest updateReadingRoomRequest);

    /**
     * 删除阅览室
     * @param id
     * @return
     */
    boolean deleteReadingRoom(Long id);

    /**
     * 根据id获取阅览室信息
     * @param id 阅览室id
     * @return 阅览室信息
     */
    ReadingRoom getReadingRoomById(Long id);
}
